<%--
  Created by IntelliJ IDEA.
  User: 刚
  Date: 2022/8/8
  Time: 上午 10:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page isELIgnored="false" contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
        <table>
            <tr>
                <td>编号</td>
                <td>姓名</td>
                <td>性别</td>
                <td>班级</td>
            </tr>
            <c:forEach items="${list}" var="stu">
                <tr>
                    <td>${stu.id}</td>
                    <td>${stu.name}</td>
                    <td>
                        <c:if test="${stu.cid ==1}">男</c:if>
                        <c:if test="${stu.cid ==0}">女</c:if>
                    </td>
                    <td>${stu.classes.id}</td>
                </tr>
            </c:forEach>
        </table>

</body>
</html>
